(MAXDESC): Get it from FD_SETSIZE if that exists.
authorRichard M. Stallman <rms@gnu.org>
Sat, 29 May 1993 05:02:18 +0000 (05:02 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 29 May 1993 05:02:18 +0000 (05:02 +0000)
src/process.c

index f2c01258774eb5b21568490a786501d9b1373d0a..7bada8607c7a1fe53aaa356f63cbbab06404657a 100644 (file)
@@ -235,7 +235,11 @@ int update_tick;
 /* We could get this from param.h, but better not to depend on finding that.
    And better not to risk that it might define other symbols used in this
    file.  */
+#ifdef FD_SETSIZE
+#define MAXDESC FD_SETSIZE
+#else
 #define MAXDESC 64
+#endif
 #define SELECT_TYPE fd_set
 #else /* no FD_SET */
 #define MAXDESC 32